local res = {}
local jsonTemp = {}
local stock = 0
local sales = 0
local increase = 0
for i=1, #KEYS do
	jsonTemp = {}
	stock = redis.call("HGET", KEYS[i], "stock")
	sales = redis.call("HGET", KEYS[i], "sales")
	increase = redis.call("HGET", KEYS[i], "increase")
	jsonTemp["key"] = KEYS[i]
	jsonTemp["stock"] = stock
	jsonTemp["sales"] = sales
	jsonTemp["increase"] = increase
	res[i] = jsonTemp
end
return cjson.encode(res)